//
//  RecommendListTableViewCell.m
//  网络FM
//
//  Created by dllo on 15/5/23.
//  Copyright (c) 2015年 dengzhicheng.com. All rights reserved.
//

#import "RecommendListTableViewCell.h"

@implementation RecommendListTableViewCell
- (void)dealloc
{
    [_numberLable release];
    [_listImageView release];
    [_titleLable release];
    [_mainLable release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.numberLable = [[UILabel alloc] initWithFrame:CGRectMake(20, 30, 30, 20)];
        //排行lable的字体大小和颜色
        self.numberLable.textColor = [UIColor redColor];
        self.numberLable.font = [UIFont boldSystemFontOfSize:20];
        
        [self.contentView addSubview:_numberLable];
        [_numberLable release];
        
        
        
        self.listImageView = [[UIImageView alloc] initWithFrame:CGRectMake(60, 5, 60, 60)];
        //图片圆角的设置
        self.listImageView.layer.cornerRadius = 10;
        self.listImageView.clipsToBounds =YES;
        
        [self.contentView addSubview:_listImageView];
        [_listImageView release];
        
        
        
        self.titleLable = [[UILabel alloc] initWithFrame:CGRectMake(130, 10, 150, 25)];
        //标题lable的字体大小
        self.titleLable.font = [UIFont boldSystemFontOfSize:21];
        
        [self.contentView addSubview:_titleLable];
        [_titleLable release];
        
        
        
        self.mainLable = [[UILabel alloc] initWithFrame:CGRectMake(130, 40, [UIScreen mainScreen].bounds.size.width - 140, 25)];
        self.mainLable.textColor = [UIColor lightGrayColor];
        [self.contentView addSubview:_mainLable];
        [_mainLable release];
        
    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
